package com.rd.student.jike.class4.wanghaixin.test0801;

import java.util.Arrays;

public class Test01 {
    public static void main(String[] args) {
        int[] arrays = {1,3,5,7,9,11,13,15,17,0};
        int[] newArrays = new int[arrays.length];
        for (int i = 0,j = 0; i < arrays.length&&j < newArrays.length; i++) {
            newArrays[j++]=arrays[i];
            if(arrays[i]==9){
                newArrays[j++]=10;
            }
            System.out.println(i+ " "+j);
            System.out.println(Arrays.toString(newArrays));
        }
        arrays = newArrays; 
        System.out.println(Arrays.toString(arrays));
    }
}
